<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.java.service.*,java.util.*,com.java.model.UserSession,com.java.util.*"%>
<jsp:include page="common/header.jsp"></jsp:include>
<%
	String ent_id = request.getParameter( "ent_id" );
	String repl_id = request.getParameter( "repl_id" );
	String repl_dt = request.getParameter( "repl_dt" );
	String member_id = CmmUtil.nvl(request.getParameter( "member_id" ),"");
	String login_nm = request.getParameter( "login_nm" );
	String soc_no1 = request.getParameter( "soc_no1" );
	String soc_no2 = request.getParameter( "soc_no2" );
	String login_id = request.getParameter( "login_id" );
	String login_pw = request.getParameter( "login_pw" );
	String dept_cd = request.getParameter( "dept_cd" );
	String class_cd = request.getParameter( "class_cd" );
	String birth_dt1 = request.getParameter( "birth_dt1" );
	String birth_dt2 = request.getParameter( "birth_dt2" );
	String birth_dt3 = request.getParameter( "birth_dt3" );
	String solar_cal_gb = request.getParameter( "solar_cal_gb" );
	String norm_phone_no1 = request.getParameter( "norm_phone_no1" );
	String norm_phone_no2 = request.getParameter( "norm_phone_no2" );
	String norm_phone_no3 = request.getParameter( "norm_phone_no3" );
	String cell_phone_no1 = request.getParameter( "cell_phone_no1" );
	String cell_phone_no2 = request.getParameter( "cell_phone_no2" );
	String cell_phone_no3 = request.getParameter( "cell_phone_no3" );
	String sms_rcv_yn = request.getParameter( "sms_rcv_yn" );
	String email_id1 = request.getParameter( "email_id1" );
	String email_id2 = request.getParameter( "email_id2" );	
	String post_no1 = request.getParameter( "post_no1" );
	String post_no2 = request.getParameter( "post_no2" );
	String post_addr = request.getParameter( "post_addr" );
	String detail_addr = request.getParameter( "detail_addr" );
	String fin_school = request.getParameter( "fin_school" );
	String retire_dt1 = request.getParameter( "retire_dt1" );
	String retire_dt2 = request.getParameter( "retire_dt2" );
	String retire_dt3 = request.getParameter( "retire_dt3" );
	String service_end_dt = request.getParameter( "service_end_dt" );
	String start_login_dt = request.getParameter( "start_login_dt" );
	
	String soc_no = Crypto.EncodeBySType(soc_no1+soc_no2);
	String norm_phone_no = norm_phone_no1+'-'+norm_phone_no2+'-'+norm_phone_no3;
	String cell_phone_no = cell_phone_no1+'-'+cell_phone_no2+'-'+cell_phone_no3;
	String email_id = email_id1+'@'+email_id2;
	String birth_dt = birth_dt1+birth_dt2+birth_dt3;
	String post_no = post_no1+post_no2;
	String retire_dt = retire_dt1+retire_dt2+retire_dt3;
	login_pw = Crypto.EncodeBySType(login_pw);
	login_id = Crypto.EncodeBySType(login_id);
	
	String check_gu = "";
	if(member_id == null || member_id.equals("")){
		check_gu = "N";
	}else{
		check_gu = "Y";
	}
	
	String member_gb = "1";
	

	HashMap map			= new HashMap();
	ArrayList list 		= null;
		
	CommonDaoService commonservice = new CommonDaoService("Com0101lp04Dao");
	map.put("ent_id",ent_id);
	map.put("repl_id",repl_id);
	map.put("repl_dt",repl_dt);
	map.put("member_id",member_id);
	map.put("login_nm",login_nm);
	map.put("soc_no1",soc_no1);
	map.put("soc_no2",soc_no2);
	map.put("login_id",login_id);
	map.put("login_pw",login_pw);
	map.put("dept_cd",dept_cd);
	map.put("class_cd",class_cd);
	map.put("solar_cal_gb",solar_cal_gb);
	map.put("sms_rcv_yn",sms_rcv_yn);
	map.put("post_addr",post_addr);
	map.put("detail_addr",detail_addr);
	map.put("service_end_dt",service_end_dt);
	map.put("start_login_dt",start_login_dt);
	map.put("soc_no",soc_no);
	map.put("norm_phone_no",norm_phone_no);
	map.put("cell_phone_no",cell_phone_no);
	map.put("email_id",email_id);
	map.put("birth_dt",birth_dt);
	map.put("post_no",post_no);
	map.put("retire_dt",retire_dt);
	map.put("fin_school",fin_school);
	map.put("check_gu",check_gu);
	map.put("member_gb",member_gb);
	
	list = (ArrayList)commonservice.commonDaoMethod(map);
	
	
	
	String result_Message = "";
	if(list != null){
		if(list.size() > 0){
			result_Message = (String)((HashMap)list.get(0)).get("result_message");
		}
	}

%>
<script>
	<%if(list != null){%>
		alert('<%=result_Message%>');
		parent.location.href = '/jsp/com0101l_p03.jsp';
	<%}%>
</script>
<body>

</body>
</html>